package HibernateFacet.second;

/**
 * DataRecord entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {
	private Integer id;
	private String name;
	private String password;
	private Integer role;
	private String phone;

	public User() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Override
	public String toString() {
		return "user{" +
				"id=" + id +
				", name='" + name + '\'' +
				", password='" + password + '\'' +
				", role=" + role +
				", phone=" + phone +
				'}';
	}
}